import App from './App'
import{myRequest} from './util/api.js'
import {Base64} from './util/code.js'
import config from'./common/config.js'
import ccUI from 'cc-ui-uni-app'
import VueClipboard from 'vue-clipboard2'
import { isUseLog } from './config/env.config.js';
Vue.use(VueClipboard)

Vue.use(ccUI)
Vue.prototype.code = new Base64();
Vue.prototype.$myRequest = myRequest
Vue.prototype.loanAmount = config.loanAmount;

if (process.env.NODE_ENV === 'production' && !isUseLog) {  
    console.log = function() {}  
}

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif

// let vueThis= new Vue({
//   el: '#app',
//    router,
//     store,
// 	accessToken,
//   data:{
//     Bus: new Vue()
//   },
//   render: h => h(App)
// }).$mount('#app');
// export default vueThis
